package com.sx.medicinecard.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "sx_refund_info")
public class SxRefundInfo extends Model<SxRefundInfo> {
    /**
     * 退款id
     */
    @TableId(value = "refund_id")
    private String refundId;
    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private String userId;
    /**
     * 手机号
     */
    @TableField(value = "phone_no")
    private String phoneNo;
    /**
     * 支付类型（0-支付宝，1-微信）
     */
    @TableField(value = "pay_type")
    private String payType;
    /**
     * 签约id
     */
    @TableField(value = "sign_id")
    private String signId;
    /**
     * 源客订单号
     */
    @TableField(value = "yuanke_order_no")
    private String yuankeOrderNo;
    /**
     * 荷叶退款单号
     */
    @TableField(value = "hy_refund_order_no")
    private String hyRefundOrderNo;
    /**
     * 退款金额
     */
    @TableField(value = "refund_amount")
    private BigDecimal refundAmount;
    /**
     * 退款流水号
     */
    @TableField(value = "refund_serial_number")
    private String refundSerialNumber;
    /**
     * 返回消息体
     */
    @TableField(value = "body")
    private String body;
    /**
     * 退款状态（0-未退款，1-已退款）
     */
    @TableField(value = "refund_state")
    private String refundState;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "update_time")
    private Date updateTime;
    /**
     * 退款时间
     */
    @TableField(exist = false)
    private String refundTime;

}

